<%-- 
    Document   : login
    Created on : 03/10/2013, 04:10:03 PM
    Author     : mpalacios
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="css/bootstrap.css">
    <title>UCSUR - Sistema de Reservas En Linea</title>
  </head>
  <body>
    <div class="nav navbar-inner">
      <div class="container">
        <h1 class="nav col-lg-4">Ingreso de Usuario</h1>
        <html:form styleClass="form-horizontal" action="login" method="POST">
          <input type="hidden" name="accion" id="accion" value="login" />
          <c:if test="${not empty mensajeError}">
            <div class="alert alert-error">${mensajeError}</div>
          </c:if>
          <div class="form-group">
            <label for="txtUsuario" class="col-lg-2 control-label">Usuario:</label>
            <div class="col-lg-10">
              <html:text property="usuario.nombreUsuario" styleClass="form-control" />
            </div>
          </div>
          <div class="form-group">
            <label for="txtContrasena" class="col-lg-2 control-label">Contraseña:</label>
            <div class="col-lg-10">
              <html:password property="usuario.password" styleClass="form-control" />
            </div>
          </div>
          <div class="form-group">
            <div class="col-lg-offset-2 col-lg-10">
              <div class="checkbox">
                <label>
                  <html:checkbox property="recordarme" styleClass="form-control" value="S" />Recordarme
                </label>
              </div>
            </div>
          </div>
          <div class="form-group">
            <div class="col-lg-offset-2 col-lg-10">
              <button type="submit" class="btn btn-default">Ingresar</button>
            </div>
          </div>
        </html:form>
      </div>    
    </div>
  </body>
</html>
